
package gist;

import java.io.IOException;
import java.util.Properties;

/**
 * describe:读取属性文件
 * author:gss
 * 
 * @note：
 * @knowledge:
 *             create_time:2016-2-26 09:28:35
 */
public class ReadProperties {

    /**
     * 读取问卷report-properties文件
     * 
     * @return
     * @throws IOException
     */
    public static String getPro(String key) throws IOException {
        Properties properties = new Properties();
        properties.load(ReadProperties.class.getClassLoader().getResourceAsStream("config.properties"));
        return properties.getProperty(key);
    }

}
